import jwtToken from './../../components/helpers/jwt'


export default {
    actions :{
           loginRequest({dispatch},formData){
    return axios.post('/api/login',formData).then(response => {
                jwtToken.setToken(response.data);
                dispatch('setAuthUser');
            }).catch(error=>{
                console.log(error.data);
                console.log(error);

            })
        }
    }
}